home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
octa209b.zip
/
octave-2.09
/
PATOS2.ZIP
/
makefile.os2
< prev
next >
Wrap
Makefile
|
1997-08-13
|
3KB
|
79 lines
# Makefile for Octave 2.09 for OS/2
# (c) Klaus Gebhardt, 1994 - 1995
TOPDIR = .
HOME = /
include $(TOPDIR)/makeconf.os2
all:
cd doc & $(MAKE)
cd libcruft & $(MAKE)
cd liboctave & $(MAKE)
cd src & $(MAKE)
$(MAKE) script-files
install:
rm -f $(INSDIR)/doc/* $(INSDIR)/lisp/*
rm -f $(INSDIR)/dlfcn/examples/* $(INSDIR)/dlfcn/lib/*
rm -f $(INSDIR)/dlfcn/octave/*
rm -f $(INSDIR)/dll/octave?.dll $(INSDIR)/dll/cruft?.dll
rm -f $(INSDIR)/*.exe $(INSDIR)/*.cmd
cp doc/faq/oct-faq doc/faq/*.dvi doc/faq/*.ps $(INSDIR)/doc
cp doc/faq/*.INF $(INSDIR)/doc
cp doc/refcard/*.dvi doc/refcard/*.ps $(INSDIR)/doc
cp doc/interpreter/*.dvi doc/interpreter/*.ps $(INSDIR)/doc
cp doc/interpreter/*.1 doc/interpreter/octave $(INSDIR)/doc
cp doc/interpreter/octave.i0? doc/interpreter/octave.i1? $(INSDIR)/doc
cp doc/interpreter/*.INF $(INSDIR)/doc
cp doc/liboctave/*.dvi doc/liboctave/*.ps $(INSDIR)/doc
cp doc/liboctave/liboct doc/liboctave/liboct.i0? $(INSDIR)/doc
cp doc/liboctave/*.inf $(INSDIR)/doc
cp dlfcn/examples/* $(INSDIR)/dlfcn/examples
cp dlfcn/lib/* $(INSDIR)/dlfcn/lib
cp dlfcn/octave/* $(INSDIR)/dlfcn/octave
cp lisp/*.el $(INSDIR)/lisp
cp lisp/*.elc $(INSDIR)/lisp
cp dll/*.dll $(INSDIR)/dll
cp octave.exe oct-view.exe inst-octave.cmd make-octfile.cmd $(INSDIR)
cd g:\project\Octave\scripts\image\codecs & for %p in (*.cc) do @$(MSTDIR)\make-octfile %p
script-files: dlfcn-files
rm -f SCRIPTS.ZIP
cd scripts\image\codecs & for %p in (*.cc) do @..\\..\\..\\make-octfile %p /d $(MSTDIR)
cd scripts.fat\image\codecs & for %p in (*.cc) do @..\\..\\..\\make-octfile %p /d $(MSTDIR)
zip -r9 SCRIPTS.ZIP scripts scripts.fat
unzip -t SCRIPTS.ZIP
dlfcn-files:
rm -f dlfcn/octave/*.h dlfcn/lib/*.lib DLFCN.ZIP
cp libcruft/cruft?.lib dlfcn/lib
cp liboctave/octave2.lib src/octave1.lib dlfcn/lib
cp ../lib/dlfcn.lib ../lib/f2cdll.lib ../lib/gnuinfo.lib dlfcn/lib
cp ../lib/gnuinfo.lib ../lib/kpathsea.lib dlfcn/lib
cp ../lib/readline.lib ../pnm/oct-img.lib dlfcn/lib
cp $(EMXDIR)/lib/gpp2.lib $(EMXDIR)/lib/stdcpp2.lib dlfcn/lib
cp liboctave/*.h src/*.h ../pnm/oct-img.h dlfcn/octave
cp config.emx dlfcn/octave/config.h
cd dlfcn\examples & for %p in (*.cc) do @..\\..\\make-octfile %p /d $(MSTDIR)
cd ..\pnm & make octave
zip -r9 DLFCN.ZIP dlfcn
unzip -t DLFCN.ZIP
patches:
rm -f PATCHES.OS2 PATOS2.ZIP
-diff -cwr $(ORIGDIR)/liboctave $(MSTDIR)/liboctave | sed -f patches.sed >PATCHES.OS2
-diff -cwr $(ORIGDIR)/libcruft $(MSTDIR)/libcruft | sed -f patches.sed >>PATCHES.OS2
-diff -cwr $(ORIGDIR)/src $(MSTDIR)/src | sed -f patches.sed >>PATCHES.OS2
-diff -cwr $(ORIGDIR)/scripts $(MSTDIR)/scripts | sed -f patches.sed >>PATCHES.OS2
-diff -cwr $(ORIGDIR)/doc $(MSTDIR)/doc | sed -f patches.sed >>PATCHES.OS2
zip -r9 PATOS2.ZIP libcruft/*.os2 libcruft/*.def liboctave/*.os2
zip -r9 PATOS2.ZIP doc/*.os2 src/*.os2 *.os2 *.emx *.sed *.cmd
unzip -t PATOS2.ZIP
clean:
cd liboctave & $(MAKE) clean
cd libcruft & $(MAKE) clean
cd src & $(MAKE) clean
rm -f *.exe *.zip dll/*.dll